package cn.lili.modules.payment.service;

import cn.lili.modules.payment.entity.dos.OutOrderDetailLog;
import cn.lili.modules.payment.entity.dos.OutOrderLog;
import cn.lili.modules.payment.entity.dto.OutOrderLogSearchParams;
import cn.lili.modules.payment.entity.vo.OutOrderDetailVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 分账记录业务层
 *
 * @author Bulbasaur
 * @since 2022/10/19
 **/
public interface OutOrderLogService extends IService<OutOrderLog> {


    /**
     * 分账记录分页
     *
     * @param outOrderLogSearchParams 分页VO
     * @return
     */
    IPage<OutOrderLog> outOrderLogPage(OutOrderLogSearchParams outOrderLogSearchParams);

    /**
     * 根据ID获取分账记录
     *
     * @param id ID
     * @return
     */
    OutOrderLog getOutOrderLog(String id);

    /**
     * 根据分账单号获取分账记录
     *
     * @param outOrderNo
     * @return
     */
    OutOrderLog geOutOrderLogByOutOrderNo(String outOrderNo);

    /**
     * 查询分账状态
     */
    void queryProfitSharing();

    /**
     * 结算详细列表
     *
     * @param outOrderNo 商户分账单号
     * @return
     */
    List<OutOrderDetailLog> outOrderDetailLogList(String outOrderNo);

    /**
     * 获取分账详情
     * @param outOrderNo 商户分账单号
     * @return 分账详情
     */
    OutOrderDetailVO getDetailVO(String outOrderNo);

    /**
     * 根据订单号查询分账日志
     * @param orderSn
     * @return
     */
    OutOrderLog getByOrderSn (String orderSn);
}
